package org.test.web.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * 功能描述
 *
 * @author: weiken
 * @date: 2023年03月30日 18:47
 */
public class BeanFactory {
    private Map<String,Object> beanMap = new HashMap<>();

    public void registerBean(String name,Object bean){
        beanMap.put(name,bean);
    }

    public Object getBean(String name){
        return beanMap.get(name);
    }
}